package com.socialbank.web.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.socialbank.web.bean.Promote;
import com.socialbank.web.service.PromoteService;

@Controller
@RequestMapping("nybank/promote")
public class PromoteController {
	@Resource
	PromoteService service;
	@RequestMapping("/savePromote")
	@ResponseBody
	public Object savePromote(Promote promote){
		return service.savePromote(promote);
	}
	@RequestMapping("/delPromote")
	@ResponseBody
	public Object delPromote(Long id){
		return service.delPromote(id);
	}
	@RequestMapping("/findPromoteList")
	@ResponseBody
	public Object findPromoteList(Long deptId){
		return service.findPromoteList(deptId);
	}
}
